package com.ruoyi.smartcity.traffic.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 信号灯调度对象 traffic_signal_schedule
 * 
 * @author ruoyi
 * @date 2025-02-24
 */
public class TrafficSignalSchedule extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 路名 */
    @Excel(name = "路名")
    private String roadName;

    /** 信号灯名称 */
    @Excel(name = "信号灯名称")
    private String signalName;

    /** 所属路口 */
    @Excel(name = "所属路口")
    private String intersection;

    /** 周期（秒） */
    @Excel(name = "周期", readConverterExp = "秒=")
    private Long cycle;

    /** 状态 红,黄,绿  */
    @Excel(name = "状态 红,黄,绿 ")
    private String type;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setRoadName(String roadName) 
    {
        this.roadName = roadName;
    }

    public String getRoadName() 
    {
        return roadName;
    }
    public void setSignalName(String signalName) 
    {
        this.signalName = signalName;
    }

    public String getSignalName() 
    {
        return signalName;
    }
    public void setIntersection(String intersection) 
    {
        this.intersection = intersection;
    }

    public String getIntersection() 
    {
        return intersection;
    }
    public void setCycle(Long cycle) 
    {
        this.cycle = cycle;
    }

    public Long getCycle() 
    {
        return cycle;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("roadName", getRoadName())
            .append("signalName", getSignalName())
            .append("intersection", getIntersection())
            .append("cycle", getCycle())
            .append("type", getType())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
